package com.clms.client.controller;

import com.clms.client.pojo.vo.CustomerIssuesVo;
import com.clms.client.service.CustomerIssuesService;
import com.clms.common.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: clms-third
 * @description: 客服端的客服问答的控制层
 * @author: 赵露露
 * @create: 2021-07-23 10:14
 **/
@RestController
@RequestMapping("client/customer")
public class CustomerIssuesController {
    @Autowired
    private CustomerIssuesService customerIssuesService;
    //查询所有客服回答
   /* @GetMapping("selectall")
    public R selectAll(){
        return customerIssuesService.selectAll();
    }*/
    @PostMapping("selectvo/{currentPage}/{pageSize}")
    public R selectPage(@PathVariable Integer currentPage,
                        @PathVariable Integer pageSize,
                        @RequestBody CustomerIssuesVo customerIssuesVo){
        System.out.println(customerIssuesVo+"------------------");
        return customerIssuesService.selectPage(customerIssuesVo);
    }



}
